import React from 'react'
import { render } from 'react-dom'
import App from './app'

class AppContainer extends React.Component {
	state = {
		name : 'parcel 打包'
	}

	componentDivMount (){
		setTimeout (()=> this.setState({name:'parcel 大宝宝宝宝'}),2000)
	}

	render (){
		return <App name={this.state.name} />
	}
}

render(
	<AppContainer />,
	document.getElementById('app')
)

